package com.meituan.sdk.model.pms.esports.powerOnOffLog;

import com.meituan.sdk.annotations.ApiMeta;
import com.google.gson.reflect.TypeToken;
import javax.validation.constraints.NotBlank;
import java.lang.reflect.Type;
import com.meituan.sdk.internal.utils.JsonUtil;
import com.google.gson.annotations.SerializedName;
import javax.validation.constraints.NotNull;
import com.meituan.sdk.MeituanResponse;
import com.meituan.sdk.MeituanRequest;

/**
* 客人上下机日志同步
* This file was automatically generated.
*/
@ApiMeta(
    path = "/pms/esports/powerOnOffLog",
    businessId = 57,
    apiVersion = "10024",
    apiName = "power_on_off_log",
    needAuth = true
)
public class PowerOnOffLogRequest implements MeituanRequest<PowerOnOffLogResponse> {
    /**
    * <p data-diff-id="ct-diff-id-90616ac4-6e65-43e2-8b08-0da1586e4077">酒店ID</p>
    */
    @NotNull(message = "hotelId不能为空")
    @SerializedName("hotelId")
    private Long hotelId;
    /**
    * <p data-diff-id="ct-diff-id-b45c23bb-d549-4ca6-954d-acf41006cdc4">接待单ID</p>
    */
    @NotNull(message = "checkinId不能为空")
    @SerializedName("checkinId")
    private Long checkinId;
    /**
    * <p data-diff-id="ct-diff-id-a8a98f88-ca4f-4483-92e8-c33157ee4539">序列号</p>
    */
    @NotBlank(message = "serialNumber不能为空")
    @SerializedName("serialNumber")
    private String serialNumber;
    /**
    * <p data-diff-id="ct-diff-id-07d500dd-d551-4830-a00b-ef42a3aeb383"><span style="color: #333">上机时间，格式:yyyy-MM-dd HH:mm:ss</span></p>
    */
    @NotBlank(message = "startUseTime不能为空")
    @SerializedName("startUseTime")
    private String startUseTime;
    /**
    * <p data-diff-id="ct-diff-id-66661c21-6005-44d6-a3d1-e720c0b45f17"><span style="color: #333">下机时间，格式:yyyy-MM-dd HH:mm:ss</span></p>
    */
    @NotBlank(message = "endUseTime不能为空")
    @SerializedName("endUseTime")
    private String endUseTime;

    public Long getHotelId() {
        return hotelId;
    }
    public void setHotelId(Long hotelId) {
        this.hotelId = hotelId;
    }
    public Long getCheckinId() {
        return checkinId;
    }
    public void setCheckinId(Long checkinId) {
        this.checkinId = checkinId;
    }
    public String getSerialNumber() {
        return serialNumber;
    }
    public void setSerialNumber(String serialNumber) {
        this.serialNumber = serialNumber;
    }
    public String getStartUseTime() {
        return startUseTime;
    }
    public void setStartUseTime(String startUseTime) {
        this.startUseTime = startUseTime;
    }
    public String getEndUseTime() {
        return endUseTime;
    }
    public void setEndUseTime(String endUseTime) {
        this.endUseTime = endUseTime;
    }


    @Override
    public MeituanResponse<PowerOnOffLogResponse> deserializeResponse(String response) {
        Type type = new TypeToken<MeituanResponse<PowerOnOffLogResponse>>(){}.getType();
        return JsonUtil.fromJson(response, type);
    }
    @Override
    public String serializeToJson() {
        return JsonUtil.toJson(this);
    }


    @Override
    public String toString() {
        return "PowerOnOffLogRequest{" + "hotelId=" + hotelId + "," + "checkinId=" + checkinId + "," + "serialNumber=" + serialNumber + "," + "startUseTime=" + startUseTime + "," + "endUseTime=" + endUseTime + "}";
    }
}
